/*
 * ManagerMainActivity.java
 *
 * Created on __DATE__, __TIME__
 */

package com.DreamTeam.ui;

/**
 *
 * @author  __USER__
 */
public class ManagerMainActivity extends javax.swing.JFrame {

	/** Creates new form ManagerMainActivity */
	public ManagerMainActivity() {
		initComponents();
		this.setResizable(false);
		this.setLocationRelativeTo(null);
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	//GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		btn_customerSystem = new javax.swing.JButton();
		btn_orderSystem = new javax.swing.JButton();
		btn_productSystem = new javax.swing.JButton();
		btn_employeeSystem = new javax.swing.JButton();
		btn_systemSetting = new javax.swing.JButton();
		btn_userSystem = new javax.swing.JButton();
		btn_statistics = new javax.swing.JButton();

		setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
		setTitle("\u6b22\u8fce\u6765\u5230\u8ba2\u5355\u7ba1\u7406\u7cfb\u7edf");

		btn_customerSystem
				.setText("\u5ba2\u6237\u7ba1\u7406\u5b50\u7cfb\u7edf");
		btn_customerSystem
				.addActionListener(new java.awt.event.ActionListener() {
					public void actionPerformed(java.awt.event.ActionEvent evt) {
						btn_customerSystemActionPerformed(evt);
					}
				});

		btn_orderSystem.setText("\u8ba2\u5355\u7ba1\u7406\u5b50\u7cfb\u7edf");
		btn_orderSystem.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				btn_orderSystemActionPerformed(evt);
			}
		});

		btn_productSystem.setText("\u4ea7\u54c1\u7ba1\u7406\u5b50\u7cfb\u7edf");
		btn_productSystem
				.addActionListener(new java.awt.event.ActionListener() {
					public void actionPerformed(java.awt.event.ActionEvent evt) {
						btn_productSystemActionPerformed(evt);
					}
				});

		btn_employeeSystem
				.setText("\u5458\u5de5\u7ba1\u7406\u5b50\u7cfb\u7edf");
		btn_employeeSystem
				.addActionListener(new java.awt.event.ActionListener() {
					public void actionPerformed(java.awt.event.ActionEvent evt) {
						btn_employeeSystemActionPerformed(evt);
					}
				});

		btn_systemSetting.setText("\u7cfb\u7edf\u8bbe\u7f6e");
		btn_systemSetting
				.addActionListener(new java.awt.event.ActionListener() {
					public void actionPerformed(java.awt.event.ActionEvent evt) {
						btn_systemSettingActionPerformed(evt);
					}
				});

		btn_userSystem
				.setText("\u7cfb\u7edf\u7528\u6237\u7ba1\u7406\u5b50\u7cfb\u7edf");
		btn_userSystem.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				btn_userSystemActionPerformed(evt);
			}
		});

		btn_statistics.setText("\u7edf\u8ba1\u5206\u6790");
		btn_statistics.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				btn_statisticsActionPerformed(evt);
			}
		});

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						javax.swing.GroupLayout.Alignment.TRAILING,
						layout.createSequentialGroup()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addGroup(
														layout.createSequentialGroup()
																.addGap(95, 95,
																		95)
																.addComponent(
																		btn_orderSystem,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		142,
																		Short.MAX_VALUE))
												.addGroup(
														javax.swing.GroupLayout.Alignment.TRAILING,
														layout.createSequentialGroup()
																.addContainerGap()
																.addComponent(
																		btn_customerSystem,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		142,
																		javax.swing.GroupLayout.PREFERRED_SIZE)))
								.addGap(41, 41, 41)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addComponent(
														btn_employeeSystem,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														151,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														btn_productSystem,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														151,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addGap(75, 75, 75)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING,
												false)
												.addGroup(
														layout.createSequentialGroup()
																.addComponent(
																		btn_userSystem,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		151,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		Short.MAX_VALUE)
																.addComponent(
																		btn_statistics,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		151,
																		javax.swing.GroupLayout.PREFERRED_SIZE))
												.addComponent(
														btn_systemSetting,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														324,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addGap(90, 90, 90)));
		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						javax.swing.GroupLayout.Alignment.TRAILING,
						layout.createSequentialGroup()
								.addContainerGap(124, Short.MAX_VALUE)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														btn_userSystem,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														110,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														btn_statistics,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														110,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														btn_orderSystem,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														110,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														btn_productSystem,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														110,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addGap(46, 46, 46)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														btn_systemSetting,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														110,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														btn_customerSystem,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														112,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														btn_employeeSystem,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														110,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addGap(100, 100, 100)));

		pack();
	}// </editor-fold>
	//GEN-END:initComponents

	private void btn_productSystemActionPerformed(
			java.awt.event.ActionEvent evt)
	{
		
		new ProductSubsystem().setVisible(true);
		this.dispose();
	}
	private void btn_orderSystemActionPerformed(
			java.awt.event.ActionEvent evt)
	{
		
		new OrderSubsystem().setVisible(true);
		this.dispose();
	}
	private void btn_customerSystemActionPerformed(
			java.awt.event.ActionEvent evt) {
		// TODO add your handling code here:
		
		new CustomerSubsystem().setVisible(true);
		this.dispose();
	}

	private void btn_employeeSystemActionPerformed(
			java.awt.event.ActionEvent evt) {
		// TODO add your handling code here:
		
		new EmployeeSubsystem().setVisible(true);
		this.dispose();
	}

	private void btn_systemSettingActionPerformed(java.awt.event.ActionEvent evt) {
		// TODO add your handling code here:
		this.dispose();
		new SystemSetting().setVisible(true);
	}
	private void btn_statisticsActionPerformed(
			java.awt.event.ActionEvent evt)
	{
		this.dispose();
		new Statistics().setVisible(true);
	}
	private void btn_userSystemActionPerformed(
			java.awt.event.ActionEvent evt)
	{
		this.dispose();
		new UserSubsystem().setVisible(true);
	}

	

	/**
	 * @param args the command line arguments
	 */
	public static void main(String args[]) {
		java.awt.EventQueue.invokeLater(new Runnable() {
			public void run() {
				new ManagerMainActivity().setVisible(true);
			}
		});
	}

	//GEN-BEGIN:variables
	// Variables declaration - do not modify
	private javax.swing.JButton btn_customerSystem;
	private javax.swing.JButton btn_employeeSystem;
	private javax.swing.JButton btn_orderSystem;
	private javax.swing.JButton btn_productSystem;
	private javax.swing.JButton btn_statistics;
	private javax.swing.JButton btn_systemSetting;
	private javax.swing.JButton btn_userSystem;
	// End of variables declaration//GEN-END:variables

}